#ifndef _WIFI_H
#define _WIFI_H
#include <string.h>
#include "usart.h"
#define WiFi_RxCounter    USART2_RxCounter    
#define WiFi_RX_BUF       USART2_RxBuff 

//#define ID   "xss"                     
//#define PASSWORD   "c68v2k4q" 
#define ID   "shixunshi8"                     
#define PASSWORD   "hqyj2016" 
//#define ServerIP   "192.168.50.224" 
//#define ServerIP   "192.168.100.40"
#define ServerIP   "192.168.50.162"
#define ServerPort   8888 

char WIFI_Config0(int time);
char WIFI_Config(int time,char*cmd,char*response);
char WIFI_Router(int time);
char WIFI_ConnectTCP(int time);
void WIFI_Connect(void);
int WIFI_SendData(const char *data);

extern int connect_flag;  //是否连接成功的标志
extern int tt_flag;  //是否有网络发过来的透传数据标志

#endif
